<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link href="../static/css/animate.min.css" th:href="@{/css/animate.min.css}" rel="stylesheet"/>
    <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
</head>
<body class="gray-bg">
    <div class="row animated fadeInRight">
        <div class="ibox float-e-margins">
            <div id="ibox-content">
                 <div id="vertical-timeline" class="vertical-container light-timeline">
                     <th:block th:each="esign : ${esigns}">
                     <div class="vertical-timeline-block">
                         <div class="vertical-timeline-icon navy-bg">
                             <i class="fa fa-file-text"></i>
                         </div>

                         <div class="vertical-timeline-content">
                             <p>Service Verifier： <span th:text="${esign.approveBy}" style="font-weight: bold; font-size: 1.2em;"></span></p>
                             <p>Comment： <span th:text="${esign.approveStatus == 6?'Approve':'Not Approve'}" th:class="${esign.approveStatus == 6?'text-info':'text-danger'}"></span></p>
                             <p th:text="${esign.approveComment}" style="word-wrap: break-word; white-space: normal;font-style: italic"></p>
                             <!--<a href="javascript:;" class="btn btn-sm btn-primary"> 更多信息</a>-->
                             <span class="text-muted">
                                 <small th:text="${#dates.format(esign.approveTime, 'yyyy-MM-dd HH:mm:ss')}"></small>
                             </span>
                         </div>
                     </div>
                     </th:block>
                 </div>
             </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script>
        //判断esigns是否为空
        var esigns = [[${esigns}]];
        if (esigns.length === 0) {
            $("#vertical-timeline").html("<div class='text-center'>没有签名记录</div>");
        }

    </script>
</body>
</html>
